﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Koonsoft.HYCRM.BLL;

public partial class Deliver_OrdersForCustomers : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        switch (new RoleBLL().GetRoleIDByLoginName(User.Identity.Name))
        {
            // 如果为分行快递
            case 9:
                BranchID.Value = new BranchBLL().GetBranchIDByLoginName(User.Identity.Name).ToString();
                BindBranchDeliver();
                break;
        }
    }

    private void BindBranchDeliver()
    {
        GridView1.DataBind();
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        BindBranchDeliver();
    }
}